added Feb 2001 SDK
[windows-sources.git] / shared source / sscli20 / jscript / engine / lenientstringprototype.cs
blob88bf7d4b7aa8435aa333712620fea1c5d7c0b781
1 // ==++==
2 //
3 //
4 // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
5 //
6 // The use and distribution terms for this software are contained in the file
7 // named license.txt, which can be found in the root of this distribution.
8 // By using this software in any fashion, you are agreeing to be bound by the
9 // terms of this license.
10 //
11 // You must not remove this notice, or any other, from this software.
12 //
13 //
14 // ==--==
16 namespace Microsoft.JScript {
18 using System;
20 public sealed class LenientStringPrototype : StringPrototype{
21 public new Object constructor;
22 public new Object anchor;
23 public new Object big;
24 public new Object blink;
25 public new Object bold;
26 public new Object charAt;
27 public new Object charCodeAt;
28 public new Object concat;
29 public new Object @fixed;
30 public new Object fontcolor;
31 public new Object fontsize;
32 public new Object indexOf;
33 public new Object italics;
34 public new Object lastIndexOf;
35 public new Object link;
36 public new Object localeCompare;
37 public new Object match;
38 public new Object replace;
39 public new Object search;
40 public new Object slice;
41 public new Object small;
42 public new Object split;
43 public new Object strike;
44 public new Object sub;
45 [NotRecommended ("substr")]
46 public new Object substr;
47 public new Object substring;
48 public new Object sup;
49 public new Object toLocaleLowerCase;
50 public new Object toLocaleUpperCase;
51 public new Object toLowerCase;
52 public new Object toString;
53 public new Object toUpperCase;
54 public new Object valueOf;
56 internal LenientStringPrototype(LenientFunctionPrototype funcprot, LenientObjectPrototype parent)
57 : base(funcprot, parent) {
58 this.noExpando = false;
60 //this.constructor is given a value by the proper constructor class
61 Type super = typeof(StringPrototype);
62 this.anchor = new BuiltinFunction("anchor", this, super.GetMethod("anchor"), funcprot);
63 this.big = new BuiltinFunction("big", this, super.GetMethod("big"), funcprot);
64 this.blink = new BuiltinFunction("blink", this, super.GetMethod("blink"), funcprot);
65 this.bold = new BuiltinFunction("bold", this, super.GetMethod("bold"), funcprot);
66 this.charAt = new BuiltinFunction("charAt", this, super.GetMethod("charAt"), funcprot);
67 this.charCodeAt = new BuiltinFunction("charCodeAt", this, super.GetMethod("charCodeAt"), funcprot);
68 this.concat = new BuiltinFunction("concat", this, super.GetMethod("concat"), funcprot);
69 this.@fixed = new BuiltinFunction("fixed", this, super.GetMethod("fixed"), funcprot);
70 this.fontcolor = new BuiltinFunction("fontcolor", this, super.GetMethod("fontcolor"), funcprot);
71 this.fontsize = new BuiltinFunction("fontsize", this, super.GetMethod("fontsize"), funcprot);
72 this.indexOf = new BuiltinFunction("indexOf", this, super.GetMethod("indexOf"), funcprot);
73 this.italics = new BuiltinFunction("italics", this, super.GetMethod("italics"), funcprot);
74 this.lastIndexOf = new BuiltinFunction("lastIndexOf", this, super.GetMethod("lastIndexOf"), funcprot);
75 this.link = new BuiltinFunction("link", this, super.GetMethod("link"), funcprot);
76 this.localeCompare = new BuiltinFunction("localeCompare", this, super.GetMethod("localeCompare"), funcprot);
77 this.match = new BuiltinFunction("match", this, super.GetMethod("match"), funcprot);
78 this.replace = new BuiltinFunction("replace", this, super.GetMethod("replace"), funcprot);
79 this.search = new BuiltinFunction("search", this, super.GetMethod("search"), funcprot);
80 this.slice = new BuiltinFunction("slice", this, super.GetMethod("slice"), funcprot);
81 this.small = new BuiltinFunction("small", this, super.GetMethod("small"), funcprot);
82 this.split = new BuiltinFunction("split", this, super.GetMethod("split"), funcprot);
83 this.strike = new BuiltinFunction("strike", this, super.GetMethod("strike"), funcprot);
84 this.sub = new BuiltinFunction("sub", this, super.GetMethod("sub"), funcprot);
85 this.substr = new BuiltinFunction("substr", this, super.GetMethod("substr"), funcprot);
86 this.substring = new BuiltinFunction("substring", this, super.GetMethod("substring"), funcprot);
87 this.sup = new BuiltinFunction("sup", this, super.GetMethod("sup"), funcprot);
88 this.toLocaleLowerCase = new BuiltinFunction("toLocaleLowerCase", this, super.GetMethod("toLocaleLowerCase"), funcprot);
89 this.toLocaleUpperCase = new BuiltinFunction("toLocaleUpperCase", this, super.GetMethod("toLocaleUpperCase"), funcprot);
90 this.toLowerCase = new BuiltinFunction("toLowerCase", this, super.GetMethod("toLowerCase"), funcprot);
91 this.toString = new BuiltinFunction("toString", this, super.GetMethod("toString"), funcprot);
92 this.toUpperCase = new BuiltinFunction("toUpperCase", this, super.GetMethod("toUpperCase"), funcprot);
93 this.valueOf = new BuiltinFunction("valueOf", this, super.GetMethod("valueOf"), funcprot);